import request from '@/utils/request'

// 创建证件管理
export function createStaffCertificate(data) {
  return request({
    url: '/biz/staff-certificate/create',
    method: 'post',
    data: data
  })
}

// 更新证件管理
export function updateStaffCertificate(data) {
  return request({
    url: '/biz/staff-certificate/update',
    method: 'put',
    data: data
  })
}

// 删除证件管理
export function deleteStaffCertificate(id) {
  return request({
    url: '/biz/staff-certificate/delete?id=' + id,
    method: 'delete'
  })
}

// 获得证件管理
export function getStaffCertificate(id) {
  return request({
    url: '/biz/staff-certificate/get?id=' + id,
    method: 'get'
  })
}

// 获得证件管理分页
export function getStaffCertificatePage(query) {
  return request({
    url: '/biz/staff-certificate/page',
    method: 'get',
    params: query
  })
}

// 导出证件管理 Excel
export function exportStaffCertificateExcel(query) {
  return request({
    url: '/biz/staff-certificate/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
